import HistoryPrice from "@/components/purchase/HistoryPrice.vue";
import InvoiceRegistration from "@/components/purchase/InvoiceRegistration.vue";
import Order from "@/components/purchase/Order.vue";
import OrderChange from "@/components/purchase/OrderChange.vue";
import OrderTrackingForm from "@/components/purchase/OrderTrackingForm.vue";
import OrderWithPins from "@/components/purchase/OrderWithPins.vue";
import PaymentSchedule from "@/components/purchase/PaymentSchedule.vue";
import PriceComparison from "@/components/purchase/PriceComparison.vue";
import PurchaseInquiry from "@/components/purchase/PurchaseInquiry.vue";
import PurchaseOrder from "@/components/purchase/PurchaseOrder.vue";
import PurReturnOrder from "@/components/purchase/PurReturnOrder.vue";
import Schedule from "@/components/purchase/Schedule.vue";
import SumByAgent from "@/components/purchase/SumByAgent.vue";
import SumByCommodity from "@/components/purchase/SumByCommodity.vue";
import SumBySupplier from "@/components/purchase/SumBySupplier.vue";
import OrderDocument from "@/components/purchase/OrderDocument.vue";
import ReturnDoc from "@/components/purchase/ReturnDoc.vue";
import PurOrdDoc from "@/components/purchase/PurOrdDoc.vue";
import PurInqDoc from "@/components/purchase/PurInqDoc.vue";
import PriceComDoc from "@/components/purchase/PriceComDoc.vue";
import InDoc from "@/components/purchase/InDoc.vue";


const purchaseRoutes =
  [
    {
      path: '/inDoc',
      name: 'InDoc',
      component: InDoc,
      meta: {"title":'发票登记记录'}
    },
    {
      path: '/purInqDoc',
      name: 'PurInqDoc',
      component: PurInqDoc,
      meta: {"title":'采购询价记录'}
    },
    {
      path: '/priceComDoc',
      name: 'PriceComDoc',
      component: PriceComDoc,
      meta: {"title":'采购比价记录'}
    },
    {
      path: '/history',
      name: 'History',
      component: HistoryPrice,
      meta: {"title":'采购历史价跟踪'}
    },
    {
      path: '/purOrdDoc',
      name: 'PurOrdDoc',
      component: PurOrdDoc,
      meta: {"title":'购货单'}
    },
    {
      path: '/returnDoc',
      name: 'ReturnDoc',
      component: ReturnDoc,
      meta: {"title":'购货退货单'}
    },
    {
      path: '/orderDocument',
      name: 'OrderDocument',
      component: OrderDocument,
      meta: {"title":'购货订单记录'}
    },
    {
      path: '/invoice',
      name: 'Invoice',
      component: InvoiceRegistration,
      meta: {"title":'采购发票登记'}
    },
    {
      path: '/order',
      name: 'Order',
      component: Order,
      meta: {"title":'购货订单'}
    },
    {
      path: '/orderChange',
      name: 'OrderChange',
      component: OrderChange,
      meta: {"title":'采购订单变更表'}
    },
    {
      path: '/orderTrack',
      name: 'OrderTrack',
      component: OrderTrackingForm,
      meta: {"title":'采购订单跟踪表'}
    },
    {
      path: '/orderWithPins',
      name: 'OrderWithPins',
      component: OrderWithPins,
      meta: {"title":'以销订购看板'}
    },
    {
      path: '/paymentSchedule',
      name: 'PaymentSchedule',
      component: PaymentSchedule,
      meta: {"title":'采购付款一览表'}
    },
    {
      path: '/priceComparison',
      name: 'PriceComparison',
      component: PriceComparison,
      meta: {"title":'采购比价'}
    },
    {
      path: '/purchaseInquiry',
      name: 'PurchaseInquiry',
      component: PurchaseInquiry,
      meta: {"title":'采购询价'}
    },
    {
      path: '/purchaseOrder',
      name: 'PurchaseOrder',
      component: PurchaseOrder,
      meta: {"title":'购货单'}
    },
    {
      path: '/purReturnOrder',
      name: 'PurReturnOrder',
      component: PurReturnOrder,
      meta: {"title":'购货退货单'}
    },
    {
      path: '/schedule',
      name: 'Schedule',
      component: Schedule,
      meta: {"title":'采购明细表'}
    },
    {
      path: '/sumByAgent',
      name: 'SumByAgent',
      component: SumByAgent,
      meta: {"title":'采购汇总表（按业务员）'}
    },
    {
      path: '/sumByCommodity',
      name: 'SumByCommodity',
      component: SumByCommodity,
      meta: {"title":'采购汇总表（按商品）'}
    },
    {
      path: '/sumBySupplier',
      name: 'SumBySupplier',
      component: SumBySupplier,
      meta: {"title":'采购汇总表（按供应商）'}
    },
  ]

export default purchaseRoutes